package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备监控项-监控数据对象 mr_monitor_device_point_value
 *
 * @author ruoyi
 * @date 2022-12-04
 */
@Setter
@Getter
public class MrMonitorDevicePointValue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long autoId;

    /** 小盒子设备编码 */
    @Excel(name = "小盒子设备编码")
    private String boxCode;

    /** 监控项编码 */
    @Excel(name = "监控项编码")
    private String pointCode;

    /** 监控项值 */
    @Excel(name = "监控项值")
    private BigDecimal metricValue;

    /** 监控数据发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "监控数据发生时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date metricTime;

    /** 数据接受时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "数据接受时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date reportTime;

    /** 原始消息 */
    @Excel(name = "原始消息")
    private String originMsg;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("autoId", getAutoId())
            .append("boxCode", getBoxCode())
            .append("pointCode", getPointCode())
            .append("metricValue", getMetricValue())
            .append("metricTime", getMetricTime())
            .append("reportTime", getReportTime())
            .append("originMsg", getOriginMsg())
            .toString();
    }
}
